package com.example.shiXun.controller;

import com.example.shiXun.base.result.Results;
import com.example.shiXun.service.RoleUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：meet
 * @date ：Created in 2020/4/12 20:19
 */
@RestController
@RequestMapping("roleUser")
@Slf4j
public class RoleUserController {

    @Autowired
    private RoleUserService roleUserService;

    @PostMapping("getRoleUserByUserId")
    public Results getRoleUserByUserId (Integer userId){
        log.info("RoleUserController.getRoleUserByUserId: param="+userId);
        return roleUserService.getSysRoleUserByUserId(userId);
    }

}
